package com.lq.ecoldchain.ui.mine.certification

import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.lq.ecoldchain.R
import com.lq.ecoldchain.base.BaseNavigator
import com.lq.ecoldchain.base.view.BaseActivity
import com.lq.ecoldchain.callback.SafeClickListener
import com.lq.ecoldchain.databinding.ActivityCertificationBinding
import org.kodein.di.Kodein
import org.kodein.di.generic.instance

/*
*2019/1/3 0003  11:55
*function by lq
*/
@Route(path = BaseNavigator.certification)
class CertificationActivity:BaseActivity<ActivityCertificationBinding>(){
    override val kodein = Kodein.lazy {
        extend(parentKodein)
        import(certificationModule)
    }

    override val layoutId= R.layout.activity_certification

    override val viewDelegate: CertificationDelegate by instance()

    override fun initView() {
        binding.delegate = viewDelegate
        titleText("我的证件")
        rightIcon(null,object:SafeClickListener(){
            override fun onNoDoubleClick(v: View) {
                //添加证件
                ARouter.getInstance().build(BaseNavigator.addCertification).navigation()
            }
        })
    }

}